package edu.ybu.manage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ybu.manage.mapper.EntorMapper;
import edu.ybu.manage.mapper.GaoMapper;
import edu.ybu.manage.pojo.Entor;
import edu.ybu.manage.pojo.Gao;
import edu.ybu.manage.service.GaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GaoServiceImpl extends ServiceImpl<GaoMapper, Gao> implements GaoService {
    @Autowired
    private GaoMapper gaoMapper;

    public Integer insert(Gao gao) {
        int insert = gaoMapper.insert(gao);
        return insert;
    }

    @Override
    public Integer update(Gao gao) {
        int i = gaoMapper.updateById(gao);
        return i;
    }

    @Override
    public Integer delect(Integer id) {
        int i = gaoMapper.deleteById(id);
        return i;
    }
}
